package cn.cyty.midway.user.po;

import java.util.Date;

import com.tuweisoft.tt.potts.pump.oo.annotion.Entity;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.Primarykey;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.Item;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.num.PInteger;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Password;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Text;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.time.PTimestamp;
import com.tuweisoft.tt.potts.pump.oo.runtime.PumpObject;

@Entity(id="T_MEMBER", title="会员", dataField="id")
public class Member implements PumpObject {

	private static final long serialVersionUID = -7194022080200276066L;

	@Text(id="MEMBER_ID", title="编号", minLength=64, required=true, unique=true)
	@Primarykey
	private String id;
	
	@Text(id="MEMBER_UUID", title="uuid", minLength=255)
	private String uuid;
	
	@Item(id="MEMBER_USER", title="会员")
	private User user;
	
	@Password(id="MEMBER_PASSWORD", title="密码")
	private String password;
	
	@Password(id="MEMBER_PAYPASSWORD", title="支付密码")
	private String payPassword;
	
	@PInteger(id="MEMBER_INTEGRAL", title="会员积分")
	private int integral;
	
	@Text(id="MEMBER_ICON", title="会员头像", minLength=255)
	private String icon;
	
	@PTimestamp(id="MEMBER_LOGINTIME", title="登录时间")
	private Date logintime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPayPassword() {
		return payPassword;
	}

	public void setPayPassword(String payPassword) {
		this.payPassword = payPassword;
	}

	public int getIntegral() {
		return integral;
	}

	public void setIntegral(int integral) {
		this.integral = integral;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Date getLogintime() {
		return logintime;
	}

	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	
	
}
